package com.example.controller.filter;

import com.example.annation.Compontent;
import com.example.common.HttpHandlerFilter;
import com.example.http.HttpRequestServer;
import com.example.http.HttpRespServer;
import com.example.socket.ServletRequest;
import com.example.socket.ServletResponse;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * @Classname HttpHandlerFilter
 * @Description TODO
 * @Date 2023/4/26 10:14
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Compontent
public class HttpHandlerFilterImpl implements HttpHandlerFilter {

    @Override
    public boolean doFilter(ServletRequest request, ServletResponse response) {
        System.out.println("这是过滤器："+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
        return true;
    }

}
